/// typeIdName : null
/// deptIdName : null
/// siteTableList : null
/// menuList : null
/// mealDateInfo : [{"siteId":6,"supplyDate":"2022-03-15 00:00:00","sections":"1,2","sectionsName":"早餐,午餐","supplyDateFormat":"03月15日"}]
/// name : "南北食堂大杂烩"
/// typeId : 1
/// deptId : 1
/// status : 0
/// isDel : 0
/// remark : "这是一个备注"
/// branchId : 1000
/// tenantId : 1000
/// saasId : 1000
/// id : 6
/// createdBy : ""
/// createdDate : "2022-03-18 15:03:40"
/// updatedBy : ""
/// updatedDate : "2022-03-18 15:03:40"

class SiteListData {
  SiteListData({
      this.typeIdName, 
      this.deptIdName, 
      this.siteTableList, 
      this.menuList, 
      this.mealDateInfo, 
      this.name, 
      this.typeId, 
      this.deptId, 
      this.status, 
      this.isDel, 
      this.remark, 
      this.branchId, 
      this.tenantId, 
      this.saasId, 
      this.id, 
      this.createdBy, 
      this.createdDate, 
      this.updatedBy, 
      this.updatedDate,});

  SiteListData.fromJson(dynamic json) {
    typeIdName = json['typeIdName'];
    deptIdName = json['deptIdName'];
    siteTableList = json['siteTableList'];
    menuList = json['menuList'];
    if (json['mealDateInfo'] != null) {
      mealDateInfo = [];
      json['mealDateInfo'].forEach((v) {
        mealDateInfo?.add(MealDateInfo.fromJson(v));
      });
    }
    name = json['name'];
    typeId = json['typeId'];
    deptId = json['deptId'];
    status = json['status'];
    isDel = json['isDel'];
    remark = json['remark'];
    branchId = json['branchId'];
    tenantId = json['tenantId'];
    saasId = json['saasId'];
    id = json['id'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
  }
  dynamic typeIdName;
  dynamic deptIdName;
  dynamic siteTableList;
  dynamic menuList;
  List<MealDateInfo>? mealDateInfo;
  String? name;
  int? typeId;
  int? deptId;
  int? status;
  int? isDel;
  String? remark;
  int? branchId;
  int? tenantId;
  int? saasId;
  int? id;
  String? createdBy;
  String? createdDate;
  String? updatedBy;
  String? updatedDate;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['typeIdName'] = typeIdName;
    map['deptIdName'] = deptIdName;
    map['siteTableList'] = siteTableList;
    map['menuList'] = menuList;
    if (mealDateInfo != null) {
      map['mealDateInfo'] = mealDateInfo?.map((v) => v.toJson()).toList();
    }
    map['name'] = name;
    map['typeId'] = typeId;
    map['deptId'] = deptId;
    map['status'] = status;
    map['isDel'] = isDel;
    map['remark'] = remark;
    map['branchId'] = branchId;
    map['tenantId'] = tenantId;
    map['saasId'] = saasId;
    map['id'] = id;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    return map;
  }

}

/// siteId : 6
/// supplyDate : "2022-03-15 00:00:00"
/// sections : "1,2"
/// sectionsName : "早餐,午餐"
/// supplyDateFormat : "03月15日"

class MealDateInfo {
  MealDateInfo({
      this.siteId, 
      this.supplyDate, 
      this.sections, 
      this.sectionsName, 
      this.supplyDateFormat,});

  MealDateInfo.fromJson(dynamic json) {
    siteId = json['siteId'];
    supplyDate = json['supplyDate'];
    sections = json['sections'];
    sectionsName = json['sectionsName'];
    supplyDateFormat = json['supplyDateFormat'];
  }
  int? siteId;
  String? supplyDate;
  String? sections;
  String? sectionsName;
  String? supplyDateFormat;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['siteId'] = siteId;
    map['supplyDate'] = supplyDate;
    map['sections'] = sections;
    map['sectionsName'] = sectionsName;
    map['supplyDateFormat'] = supplyDateFormat;
    return map;
  }

}